#! /usr/bin/make -f

%:
	dh $@

override_dh_auto_configure:
	DOWNLOAD_ONLY=1 ./download_webclient.sh
	tar -xzf dist.tar.gz
	mkdir obj-x86_64-linux-gnu
	mv jellyfin-web_* obj-x86_64-linux-gnu/dist
	dh_auto_configure $@

override_dh_auto_clean:
	dh_auto_clean $@
	rm dist.tar.gz || true
